package me.uniauto.bean;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "m_user_code")
public class MUserCode implements Serializable {
    @Id
    @Column(name = "user_code_id")
    private Integer userCodeId;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 用户验证码
     */
    @Column(name = "user_code")
    private String userCode;

    /**
     * 1设备激活，2忘记密码
     */
    private Boolean type;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    /**
     * @return user_code_id
     */
    public Integer getUserCodeId() {
        return userCodeId;
    }

    /**
     * @param userCodeId
     */
    public void setUserCodeId(Integer userCodeId) {
        this.userCodeId = userCodeId;
    }

    /**
     * 获取用户id
     *
     * @return user_id - 用户id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置用户id
     *
     * @param userId 用户id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取用户验证码
     *
     * @return user_code - 用户验证码
     */
    public String getUserCode() {
        return userCode;
    }

    /**
     * 设置用户验证码
     *
     * @param userCode 用户验证码
     */
    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    /**
     * 获取1设备激活，2忘记密码
     *
     * @return type - 1设备激活，2忘记密码
     */
    public Boolean getType() {
        return type;
    }

    /**
     * 设置1设备激活，2忘记密码
     *
     * @param type 1设备激活，2忘记密码
     */
    public void setType(Boolean type) {
        this.type = type;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    @Override
    public String toString() {
        return "MUserCode{" +
                "userCodeId=" + userCodeId +
                ", userId=" + userId +
                ", userCode='" + userCode + '\'' +
                ", type=" + type +
                ", createTime=" + createTime +
                '}';
    }
}